Package com.netscape.certsrv.client
Class PKIClient
java.lang.Object
com.netscape.certsrv.client.PKIClient
- All Implemented Interfaces:
AutoCloseable
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionPKIClient(ClientConfig config) PKIClient(ClientConfig config, String apiVersion, org.mozilla.jss.ssl.SSLCertificateApprovalCallback callback) PKIClient(ClientConfig config, org.mozilla.jss.ssl.SSLCertificateApprovalCallback callback) -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()<T> T<T> T<T> org.apache.http.HttpEntityentity(T object) <T> T<T> T<T> Collection<T> <T> Collection<T> getEntities(org.apache.http.client.methods.CloseableHttpResponse httpResp, Class<T> clazz) <T> TgetInfo()voidhandleErrorResponse(org.apache.http.client.methods.CloseableHttpResponse httpResp) Marshall request object with custom mapping if available.<T> Tpatch(String path, Map<String, Object> params, org.apache.http.HttpEntity entity, Class<T> responseType) <T> T<T> T<T> T<T> Tpost(String path, Map<String, Object> params, org.apache.http.HttpEntity entity, Class<T> responseType) <T> Tput(String path, Map<String, Object> params, org.apache.http.HttpEntity entity, Class<T> responseType) voidorg.apache.http.client.utils.URIBuilder<T> Tunmarshall(org.apache.http.HttpEntity entity, Class<T> clazz) Unmarshall response object using custom mapping if available.<T> Collection<T> unmarshallCollection(org.apache.http.HttpEntity entity, Class<T> clazz)
-
Field Details
-
logger
public static org.slf4j.Logger logger -
MESSAGE_FORMATS
-
config
-
connection
-
apiVersion
-
infoClient
-
info
-
basicURI
-
-
Constructor Details
-
PKIClient
- Throws:
Exception
-
PKIClient
public PKIClient(ClientConfig config, org.mozilla.jss.ssl.SSLCertificateApprovalCallback callback) throws Exception - Throws:
Exception
-
PKIClient
public PKIClient(ClientConfig config, String apiVersion, org.mozilla.jss.ssl.SSLCertificateApprovalCallback callback) throws Exception - Throws:
Exception
-
-
Method Details
-
getAPIVersion
-
getDefaultMimeType
-
getSubsystem
-
marshall
Marshall request object with custom mapping if available.- Throws:
Exception
-
unmarshall
Unmarshall response object using custom mapping if available.- Throws:
Exception
-
unmarshallCollection
public <T> Collection<T> unmarshallCollection(org.apache.http.HttpEntity entity, Class<T> clazz) throws Exception - Throws:
Exception
-
handleErrorResponse
public void handleErrorResponse(org.apache.http.client.methods.CloseableHttpResponse httpResp) throws Exception - Throws:
Exception
-
entity
- Throws:
Exception
-
getEntity
public <T> T getEntity(org.apache.http.client.methods.CloseableHttpResponse httpResp, Class<T> clazz) throws Exception - Throws:
Exception
-
getEntities
public <T> Collection<T> getEntities(org.apache.http.client.methods.CloseableHttpResponse httpResp, Class<T> clazz) throws Exception - Throws:
Exception
-
getConfig
-
getConnection
-
target
-
get
- Throws:
Exception
-
get
- Throws:
Exception
-
getCollection
public <T> Collection<T> getCollection(String path, Map<String, Object> params, Class<T> responseType) throws Exception- Throws:
Exception
-
post
- Throws:
Exception
-
post
- Throws:
Exception
-
post
public <T> T post(String path, Map<String, Object> params, org.apache.http.HttpEntity entity, Class<T> responseType) throws Exception- Throws:
Exception
-
post
public <T> T post(String path, List<org.apache.http.NameValuePair> content, Class<T> responseType) throws Exception - Throws:
Exception
-
put
public <T> T put(String path, Map<String, Object> params, org.apache.http.HttpEntity entity, Class<T> responseType) throws Exception- Throws:
Exception
-
patch
public <T> T patch(String path, Map<String, Object> params, org.apache.http.HttpEntity entity, Class<T> responseType) throws Exception- Throws:
Exception
-
delete
- Throws:
Exception
-
delete
- Throws:
Exception
-
getInfo
- Throws:
Exception
-
setOutput
-
close
public void close()- Specified by:
closein interfaceAutoCloseable
-